﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExtensionsExcercise
{
    public static class StudentArrayExtensions
    {
        public static IEnumerable<Student> WhereFirstNameIsBeforeLastName(this Student[] students)
        {
            var result =  from student in students
                   where student.FirstName.CompareTo(student.LastName) == 1
                   select student;

            return result;
        }

        
    }
}
